﻿@model IEnumerable<GameSchool.Models.Notification>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            CourseId
        </th>
        <th>
            Title
        </th>
        <th>
            NotificationMessage
        </th>
        <th>
            PublicDate
        </th>
        <th>
            Active
        </th>
        <th>
            EntryById
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.CourseId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NotificationMessage)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PublicDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Active)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EntryById)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.NotificationId }) |
            @Html.ActionLink("Details", "Details", new { id=item.NotificationId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.NotificationId })
        </td>
    </tr>
}

</table>
